.class public Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;
.implements Ljava/util/Observer;


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/ImageButton;

.field private c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private d:Lcom/waiqin365/lightwork/tracker/model/u;

.field private e:Ljava/util/ArrayList;

.field private f:Ljava/util/ArrayList;

.field private g:Landroid/view/View;

.field private h:Landroid/view/View;

.field private i:Z

.field private j:Landroid/widget/ImageView;

.field private k:Ljava/lang/String;

.field private l:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->f:Ljava/util/ArrayList;

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->i:Z

    invoke-static {}, Ljava/util/UUID;->randomUUID()Ljava/util/UUID;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/UUID;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->k:Ljava/lang/String;

    return-void
.end method

.method private a()V
    .locals 2

    const v0, 0x7f0c0bba

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->h:Landroid/view/View;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->h:Landroid/view/View;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0c0c

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->g:Landroid/view/View;

    const v0, 0x7f0c0c0a

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/EditText;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a:Landroid/widget/EditText;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a:Landroid/widget/EditText;

    const v1, 0x7f0807e5

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setHint(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/lightwork/tracker/az;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/tracker/az;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->setOnEditorActionListener(Landroid/widget/TextView$OnEditorActionListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a:Landroid/widget/EditText;

    new-instance v1, Lcom/waiqin365/lightwork/tracker/ba;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/tracker/ba;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/EditText;->addTextChangedListener(Landroid/text/TextWatcher;)V

    const v0, 0x7f0c0c0b

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageButton;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->b:Landroid/widget/ImageButton;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->b:Landroid/widget/ImageButton;

    invoke-virtual {v0, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c09

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->j:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->j:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0c0d

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->l:Landroid/widget/ImageView;

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;Lcom/waiqin365/lightwork/tracker/model/t;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a(Lcom/waiqin365/lightwork/tracker/model/t;)V

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;Ljava/lang/CharSequence;)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->b(Ljava/lang/CharSequence;)V

    return-void
.end method

.method private a(Lcom/waiqin365/lightwork/tracker/model/t;)V
    .locals 3

    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/waiqin365/lightwork/tracker/TrackerMapActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    if-eqz p1, :cond_0

    invoke-static {}, Lcom/waiqin365/base/login/mainview/a;->a()Lcom/waiqin365/base/login/mainview/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/waiqin365/base/login/mainview/a;->i(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v1

    iget-object v2, p1, Lcom/waiqin365/lightwork/tracker/model/t;->a:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    const-string/jumbo v1, "isSingle"

    const/4 v2, 0x1

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    :goto_0
    const-string/jumbo v1, "userid"

    iget-object v2, p1, Lcom/waiqin365/lightwork/tracker/model/t;->a:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "username"

    iget-object v2, p1, Lcom/waiqin365/lightwork/tracker/model/t;->b:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    const-string/jumbo v1, "phonenum"

    iget-object v2, p1, Lcom/waiqin365/lightwork/tracker/model/t;->f:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    :cond_0
    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->startActivity(Landroid/content/Intent;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->overridePendingTransition(II)V

    return-void

    :cond_1
    const-string/jumbo v1, "isSingle"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Z)Landroid/content/Intent;

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)Z
    .locals 1

    iget-boolean v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->i:Z

    return v0
.end method

.method static synthetic a(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;Z)Z
    .locals 0

    iput-boolean p1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->i:Z

    return p1
.end method

.method static synthetic b(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->h:Landroid/view/View;

    return-object v0
.end method

.method private b()V
    .locals 3

    const/4 v2, 0x0

    const v0, 0x7f0c0ba3

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v0, Lcom/waiqin365/lightwork/tracker/model/u;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightwork/tracker/model/u;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/model/u;->a(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    invoke-virtual {v0, v2}, Lcom/waiqin365/lightwork/tracker/model/u;->b(Z)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    new-instance v1, Lcom/waiqin365/lightwork/tracker/bb;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/tracker/bb;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/model/u;->a(Lcom/waiqin365/lightwork/tracker/d/a;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightwork/tracker/bc;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightwork/tracker/bc;-><init>(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->c:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/x;->a()Lcom/waiqin365/lightwork/tracker/model/x;

    move-result-object v0

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/x;->g()Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_0

    const-string/jumbo v0, "yc"

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    const-string/jumbo v2, "type"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/x;->a()Lcom/waiqin365/lightwork/tracker/model/x;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/model/x;->f()Ljava/util/List;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/x;->a()Lcom/waiqin365/lightwork/tracker/model/x;

    move-result-object v1

    invoke-virtual {v1}, Lcom/waiqin365/lightwork/tracker/model/x;->g()Ljava/util/ArrayList;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    goto :goto_0
.end method

.method private b(Ljava/lang/CharSequence;)V
    .locals 3

    const/4 v2, 0x0

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->l:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->h:Landroid/view/View;

    invoke-virtual {v0, v2}, Landroid/view/View;->setVisibility(I)V

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v0

    if-eqz p1, :cond_0

    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    if-nez v1, :cond_1

    :cond_0
    const/4 v1, 0x1

    iput-boolean v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->i:Z

    :cond_1
    invoke-interface {p1}, Ljava/lang/CharSequence;->length()I

    move-result v1

    if-lez v1, :cond_2

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->b:Landroid/widget/ImageButton;

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setVisibility(I)V

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a(Ljava/lang/CharSequence;)V

    :goto_0
    return-void

    :cond_2
    const v0, 0x7f080027

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->b:Landroid/widget/ImageButton;

    const/4 v1, 0x4

    invoke-virtual {v0, v1}, Landroid/widget/ImageButton;->setVisibility(I)V

    goto :goto_0
.end method

.method static synthetic c(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)Landroid/view/View;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->g:Landroid/view/View;

    return-object v0
.end method

.method private c()V
    .locals 1

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/k;->a(Landroid/app/Activity;)V

    const/4 v0, -0x1

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->setResult(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->back()V

    return-void
.end method

.method static synthetic d(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)Landroid/widget/ImageView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->l:Landroid/widget/ImageView;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;)Lcom/waiqin365/lightwork/tracker/model/u;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    return-object v0
.end method


# virtual methods
.method protected a(Ljava/lang/CharSequence;)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/u;->getFilter()Landroid/widget/Filter;

    move-result-object v0

    invoke-interface {p1}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/String;->toLowerCase()Ljava/lang/String;

    move-result-object v1

    const-string/jumbo v2, " "

    const-string/jumbo v3, ""

    invoke-virtual {v1, v2, v3}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/Filter;->filter(Ljava/lang/CharSequence;)V

    return-void
.end method

.method public onBackPressed()V
    .locals 0

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->c()V

    return-void
.end method

.method public onClick(Landroid/view/View;)V
    .locals 5

    const v4, 0x7f08072f

    const/4 v3, 0x1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->c()V

    goto :goto_0

    :sswitch_1
    iput-boolean v3, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->i:Z

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-interface {v0}, Landroid/text/Editable;->clear()V

    goto :goto_0

    :sswitch_2
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->l:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->h:Landroid/view/View;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/view/View;->setVisibility(I)V

    const-string/jumbo v0, "current_dept_search"

    invoke-static {p0, v0}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;)V

    new-instance v0, Lcom/waiqin365/lightwork/directory/b/v;

    invoke-direct {v0}, Lcom/waiqin365/lightwork/directory/b/v;-><init>()V

    new-instance v1, Landroid/content/Intent;

    const-class v2, Lcom/waiqin365/lightwork/directory/DirectoryDepartmentSelectMultiModeActivity;

    invoke-direct {v1, p0, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    iput-boolean v3, v0, Lcom/waiqin365/lightwork/directory/b/v;->i:Z

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightwork/directory/b/v;->f:Ljava/lang/String;

    invoke-virtual {p0, v4}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    iput-object v2, v0, Lcom/waiqin365/lightwork/directory/b/v;->g:Ljava/lang/String;

    iput-boolean v3, v0, Lcom/waiqin365/lightwork/directory/b/v;->k:Z

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->k:Ljava/lang/String;

    iput-object v2, v0, Lcom/waiqin365/lightwork/directory/b/v;->d:Ljava/lang/String;

    const-string/jumbo v2, "param"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    invoke-virtual {p0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->startActivity(Landroid/content/Intent;)V

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/util/Observable;->addObserver(Ljava/util/Observer;)V

    const v0, 0x7f040022

    const v1, 0x7f040021

    invoke-virtual {p0, v0, v1}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->overridePendingTransition(II)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c0350 -> :sswitch_0
        0x7f0c0c09 -> :sswitch_2
        0x7f0c0c0b -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 1

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    invoke-static {p0}, Lcom/fiberhome/gaea/client/d/a;->b(Landroid/app/Activity;)V

    const v0, 0x7f030273

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->setContentView(I)V

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->b()V

    return-void
.end method

.method public update(Ljava/util/Observable;Ljava/lang/Object;)V
    .locals 5

    const/4 v3, 0x0

    instance-of v0, p2, Lcom/waiqin365/lightapp/view/a/a;

    if-eqz v0, :cond_2

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->k:Ljava/lang/String;

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    move-object v0, p2

    check-cast v0, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/a/a;->a:Ljava/lang/String;

    invoke-virtual {v1, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-static {}, Lcom/waiqin365/lightapp/view/a/b;->a()Ljava/util/Observable;

    move-result-object v0

    invoke-virtual {v0, p0}, Ljava/util/Observable;->deleteObserver(Ljava/util/Observer;)V

    check-cast p2, Lcom/waiqin365/lightapp/view/a/a;

    iget-object v0, p2, Lcom/waiqin365/lightapp/view/a/a;->b:Ljava/lang/Object;

    check-cast v0, Ljava/util/HashMap;

    if-eqz v0, :cond_2

    const-string/jumbo v1, "selectDepList"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->containsKey(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "selectDepList"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    if-eqz v1, :cond_2

    const-string/jumbo v1, "selectDepList"

    invoke-virtual {v0, v1}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/util/List;

    const-string/jumbo v1, ""

    move v2, v3

    :goto_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v4

    if-ge v2, v4, :cond_0

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-interface {v0, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/waiqin365/lightapp/kehu/share/a/m;

    iget-object v1, v1, Lcom/waiqin365/lightapp/kehu/share/a/m;->b:Ljava/lang/String;

    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v4, ","

    invoke-virtual {v1, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    add-int/lit8 v1, v2, 0x1

    move v2, v1

    move-object v1, v4

    goto :goto_0

    :cond_0
    const-string/jumbo v0, ","

    invoke-virtual {v1, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_1

    const-string/jumbo v0, ","

    invoke-virtual {v1, v0}, Ljava/lang/String;->lastIndexOf(Ljava/lang/String;)I

    move-result v0

    invoke-virtual {v1, v3, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v1

    :cond_1
    invoke-virtual {v1}, Ljava/lang/String;->trim()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_3

    :cond_2
    :goto_1
    return-void

    :cond_3
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-static {}, Lcom/waiqin365/lightwork/tracker/model/x;->a()Lcom/waiqin365/lightwork/tracker/model/x;

    move-result-object v2

    invoke-virtual {v2}, Lcom/waiqin365/lightwork/tracker/model/x;->c()Lcom/waiqin365/lightwork/tracker/model/t;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :goto_2
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-ge v3, v0, :cond_5

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightwork/tracker/model/t;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/model/t;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->f:Ljava/util/ArrayList;

    iget-object v2, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v2, v3}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    :cond_4
    add-int/lit8 v3, v3, 0x1

    goto :goto_2

    :cond_5
    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    iget-object v1, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->f:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightwork/tracker/model/u;->b(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightwork/tracker/TrackerSearchActivity;->d:Lcom/waiqin365/lightwork/tracker/model/u;

    invoke-virtual {v0}, Lcom/waiqin365/lightwork/tracker/model/u;->notifyDataSetChanged()V

    goto :goto_1
.end method
